//
//  QChooseAddressCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/4/24.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QChooseAddressCell.h"
@interface QChooseAddressCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightLayout;

@end
@implementation QChooseAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setModel:(QHistoryAddressModel *)model{
    _model = model;
    _titleLab.text = _model.address;
    if (_model.indexPath.section == 0) {
        _rightLayout.constant = 75;
        _titleLab.text = _model.address;
        
    }else{
        _rightLayout.constant = 5;
        //_titleLab.text = [NSString stringWithFormat:@"%@%@%@",_model.city,_model.limitArea,_model.address];
        _titleLab.text = _model.address;
    }
}
- (IBAction)locationAgainAction:(id)sender {
    if (self.locationAgainBlock) {
        self.locationAgainBlock();
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
